﻿
Imports System.ComponentModel.DataAnnotations.Schema
Imports System.ComponentModel.DataAnnotations

<Table("DetalleContrato")>
Public Class DetalleContrato
    Implements IEntity
    <Key()>
    <DatabaseGenerated(DatabaseGeneratedOption.Identity)>
    Public Property IdDetalleContrato() As Integer

    Public Property IdContrato() As Integer

    <ForeignKey("IdContrato")>
    Public Overridable Property Contrato() As Contrato

    Public Property IdServicio() As Integer

    <ForeignKey("IdServicio")>
    Public Overridable Property Servicio() As Servicio

    Public Property IdHibrido() As Integer

    Public Property Cantidad() As Integer

    <StringLength(50)>
    Public Property Lote() As String

    Public Property FechaEntrega() As DateTime

    Public Property PrecioUnitario() As Decimal

    Public Property Descuento() As Decimal

    Public Property CantidadSemillas() As Decimal

    Public Property MontoPorBandejas() As Decimal

    Public Property SubTotal() As Decimal

    <NotMapped()>
    Public Property ID() As Integer Implements IEntity.ID
        Get
            Return IdDetalleContrato
        End Get
        Set(ByVal value As Integer)
            IdDetalleContrato = value
        End Set
    End Property
End Class
